The Dreamweaver JavaScript API > History functions > dreamweaver.historyPalette.copySteps()

 

dreamweaver.historyPalette.copySteps()

Availability

Dreamweaver 3.0

Description

Copies the specified history steps to the clipboard. Dreamweaver warns the user of possible unintended consequences if the specified steps include an unrepeatable action.

Arguments

arrayOfIndices

arrayOfIndices is an array of position indices in the History panel.

Returns

A string containing the JavaScript that corresponds to the specified history steps.

Enabler

None.

Example

The following code copies the first four steps in the History panel:

dw.historyPalette.copySteps([0,1,2,3]);